package com.pxst.agent.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class AgentUpdateReq {

    @NotBlank(message = "代理编号不能为空")
    @ApiModelProperty(value = "代理编号，报表用" ,required = true)
    private String displayId;

    @NotNull(message = "代理全称不能为空")
    @ApiModelProperty(value = "全称" ,required = true)
    private String fullName;

    @NotNull(message = "代理类型不能为空")
    @ApiModelProperty(value = "1.总代，2.代理" ,required = true)
    private Integer identity;

    @ApiModelProperty(value = "所属总代")
    private Long belongId;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态（1启用，0停用）" ,required = true)
    private Integer status;

    @NotBlank(message = "登录账号不能为空")
    @ApiModelProperty(value = "登录账号" ,required = true)
    private String username;

    @NotNull(message = "代理id不能为空")
    @ApiModelProperty(value = "代理id" ,required = true)
    private Boolean identityConfirm;

    @NotBlank(message = "创建人不能为空")
    @ApiModelProperty(value = "创建人" ,required = true)
    private String creator;

    @NotBlank(message = "更新人不能为空")
    @ApiModelProperty(value = "更新人" ,required = true)
    private String updater;

    @NotNull(message = "创建时间不能为空")
    @ApiModelProperty(value = "创建时间" ,required = true)
    private Date createdAt;

    @NotNull(message = "更新时间不能为空")
    @ApiModelProperty(value = "更新时间" ,required = true)
    private Date updatedAt;

    @ApiModelProperty(value = "更新人")
    private String password;
}
